package com.zzxz.practicaltrainingsys.service;

import com.github.pagehelper.PageInfo;
import com.zzxz.practicaltrainingsys.entity.Student;
import com.zzxz.practicaltrainingsys.vo.ViewStudent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentService {
    List<Student> getStudent();
    List<String> getStudentNames();
    PageInfo<Student> getStudentPages(Integer pageNum, Integer pageSize);
    PageInfo<ViewStudent> findStudentPages(Integer pageNum, Integer pageSize, Integer school_id, Integer college_id, Integer major_id, Integer grade_id);
    boolean updatePassword(Integer student_id, String student_password);
    Student getStudentById(Integer student_id);
    boolean updateStudent(Student student);
    boolean addStudent(Student student);
    ViewStudent getViewStudentById(Integer student_id);
    boolean logicDeleteStudent(Integer student_id);
    boolean logicDeleteStudents(List<Integer> ids);
    int getTotalStudentsNum();

    Student findStudentByPhone(@Param("student_phone") String student_phone);
    List<Student> getStudentsByProjectId(Integer projectId);

}